package com.blank.web.bean;

public class ClassBean {
    //1、私有化成员变量
    private int cid;   //班级编号即id
    private int grade;  //班级所属的年级
    private String teacherName; //班主任的名称
    private String slogan;  //班级口号
    private int classNum;   //班级人数

    //2、构造方法
    public ClassBean() {
    }

    public ClassBean(int cid, int grade, String teacherName, String slogan, int classNum) {
        this.cid = cid;
        this.grade = grade;
        this.teacherName = teacherName;
        this.slogan = slogan;
        this.classNum = classNum;
    }

    //getter 和 setter

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int cGrade) {
        this.grade = cGrade;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public int getClassNum() {
        return classNum;
    }

    public void setClassNum(int classNum) {
        this.classNum = classNum;
    }

    //4、输出打印

    @Override
    public String toString() {
        return "Class{" +
                "cid=" + cid +
                ", cGrade=" + grade +
                ", teacherName='" + teacherName + '\'' +
                ", slogan='" + slogan + '\'' +
                ", classNum=" + classNum +
                '}';
    }
}
